package model

import "gin-vben-admin/internal/constant"

type SysPermission struct {
	Id     int64           `json:"id" gorm:"primaryKey;autoIncrement;comment:主键编码"`          //apiId
	RoleId int64           `json:"role_id" gorm:"column:role_id;notNull;comment:角色id"`       //Handle
	MenuId int64           `json:"menu_id" gorm:"column:menu_id;notNull;comment:菜单id"`       //api名称
	ApiKey string          `json:"api_key" gorm:"column:api_key;notNull;comment:api_key"`    //api路径
	Status constant.Status `json:"status" gorm:"column:status;notNull;default:1;comment:状态"` //api路径
}

func (s *SysPermission) TableName() string {
	return "sys_permission"
}
